<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BApp
 * This class define relationship between authItem and operations
 *
 * @author jianfeng
 */
abstract class BServiceApp {
    /*
     * operation can be function inside this class
     * or function from other classes
     * this is collection of operations used in this app
     */
    
 //   const BServiceAppForService = 'application.application.BserviceAppForService';
    protected $operations = null;
    /*
     * collection of authItems, they are instance of BAuthItem
     * authItem is a collection of roles,tasks that can contain operations
     */
    protected $authItems = null;
    protected $rootAuthItem = null;
    protected $serviceContainer = null;
  //  private $backgroundApp = null;   
    
    public function __construct($parentService) {
        $this->serviceContainer = $parentService;
    }

    abstract public function doOperation($operationName,$args);    
    public function checkAccess($operationName){
        ;
    }          
}

?>
